package com.jiaozi.core.security.pojo.login;

import com.alibaba.fastjson.annotation.JSONField;
import com.jiaozi.base.enums.sys.StateEnum;
import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Schema(name = "用户信息",description = "用户信息")
public class LuUserVO {
    @Schema(description = "用户主键")
    private String userId;
    //用户账号
    @Schema(description = "用户账号")
    private String userName;

    //用户昵称
    @Schema(description = "用户昵称")
    private String nickName;
    //部门id
    @Schema(description = "部门主键")
    @Hidden
    private Long departmentId;
    //密码
    @Schema(description = "密码")
    @JSONField(serialize = false)
    @Hidden
    private String password;
    //是否启用（0停用 1启用）
    @Schema(description = "是否启用")
    private StateEnum isEnabled;
    //过期时间
    @Schema(description = "过期时间")
    private Date expiredDate;
}
